<?php defined('SYSPATH') or die('No direct script access.');

class Controller_User_Regist extends Controller_DefaultTemplate{

public function action_index()
{
	if ($_GET)
    {
		$email = arr::get($_GET, 'email');
		$password = arr::get($_GET, 'password');
		$user = ORM::factory('user');
		$user->email = $email;
		$user->password = $password;
		if ($user->save())
		{
			echo "成功";
			return;
		}
	}
	echo "失败";
}

}

